package com.carpedil.client.controller;

import com.carpedil.client.service.ClienService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/** @author Administrator */
@RestController
public class ClientController {
  @Autowired ClienService clienService;

  @GetMapping("/booking/{movieName}")
  public String booking(@PathVariable("movieName") String movieName) {
    return clienService.booking(movieName);
  }

  @GetMapping("/query/{orderId}")
  public String query(@PathVariable("orderId") String orderId) {
    return clienService.query(orderId);
  }
}
